<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:fmt="http://java.sun.com/jstl/fmt"
      xmlns:x="http://java.sun.com/jstl/xml"
      xmlns:fn="http://java.sun.com/jstl/functions"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:gape="http://componentes.gape/component/gape">

<f:view>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>
			<ui:insert name="titulo">				
			</ui:insert>
		</title>
		
		<link href="/gape/files/layout.css" rel="stylesheet" type="text/css" />
	</head>
	
	<body>
		<a4j:form id="tela">
			<f:loadBundle basename="MessageResources.MessageResources_pt_BR" var="msg"/>
			
			<div id="masthead">
				<h:panelGroup styleClass="areausuario" rendered="#{login.isLogged}">
					<h:outputText value="#{login.login}" />
				</h:panelGroup>
				<div id="menu">
					<h:panelGrid columns="1">
						<rich:menuItem selectClass="menuSelected">
							<h:commandLink value="#{msg.menuLogout}" immediate="true" action="#{login.logout}" />
						</rich:menuItem>
					</h:panelGrid>
				</div>
			</div>
			
			<div id="container">
				<div id="left_col">
					<ui:include src="/menu/menu.xhtml" />
					<ui:insert name="menu">						
					</ui:insert>
				</div>
				
				<div id="page_content">
					<div id = "content">
						<center>
							<rich:toolBar rendered="#{login.isLogged}" id="toolBarMenu">
								<ui:insert name="menuNavegacaoBack">
								</ui:insert>
								<ui:insert name="menuNavegacaoForward">
								</ui:insert>
							
								<ui:insert name="menuTela">
								</ui:insert>
								
								<rich:toolBarGroup location="right">
									<ui:include src="/menu/menuConfiguracao.xhtml" />
								</rich:toolBarGroup>
							</rich:toolBar>
							<ui:insert name="conteudo">					
							</ui:insert>
						</center>
					</div>
					
					<div id="ajuda">
						<ui:insert name="ajuda"></ui:insert>				
					</div>					
				</div>
				
				<div id="alturaminima"></div>
				
				<div class="clearboth"></div>
			</div>
			
			<div id="footer">
				<ui:insert name="rodape" />
			</div>
		</a4j:form>
		
		<ui:include src="/default/panelError.xhtml" />
		<ui:insert name="includePanels"></ui:insert>
	</body>
</f:view>
</html>